package com.aliengen.thingple.driverapp.data.models;

import com.aliengen.thingple.driverapp.data.local.CustomerModel;
import com.aliengen.thingple.driverapp.data.local.PlanGroupModel;
import com.aliengen.thingple.driverapp.network.api.models.Cylinder;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * This class is part of the Thingple mobile application for the CMC168 Handheld reader.
 *
 * Copyright AlienGen Limited 2016. All rights reserved.
 *
 * @author Timothé Mermet-Buffet <tim@aliengen.com>
 */
public class Report implements Serializable {
    public TruckTag truck;
    public PlanGroupModel plangroup;
    public CustomerModel customer;
    public String operation;
    public static List<CylinderTag> cylinders;
    public static List<Anomaly> anomalies;

    public Report(TruckTag truck, PlanGroupModel plangroup)
    {
        this.truck = truck;
        this.plangroup = plangroup;
        this.customer = plangroup.customer;
        anomalies = new ArrayList<>();
        cylinders = new ArrayList<>();
        operation = "";
    }

    public void reset()
    {
        anomalies = new ArrayList<>();
        cylinders = new ArrayList<>();
        operation = "";
    }
}
